#ifndef ADAM_DATABASE_CONDITION_H
#define ADAM_DATABASE_CONDITION_H

#include "ccstring.h"

enum condition_type { EQUALS = 0 };

struct condition {
  struct string *col_name;
  enum condition_type condition_type;
  struct string *value;
};

/**
 * 在内存中返回条件的实例
 */
struct condition *condition_new(struct string *col_name,
                                enum condition_type condition_type,
                                struct string *value);

/**
 * 释放条件所占用的内存空间
 * @param C 条件
 */
void condition_free(struct condition *C);

#endif